package com.zzyl.nursing.task;

import com.zzyl.nursing.service.IContractService;
import com.zzyl.nursing.service.IFamilyMemberService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @Author:篍
 * @Date: 2025/08/13 15:45
 * @Description:
 */

@Component
@Slf4j
public class MyTask {
    @Autowired
    private IContractService contractService;

    @Autowired
    private IFamilyMemberService familyMemberService;

    public void task1() {
        log.warn("task1");
    }


    public void updateContractStatus() {
        log.warn("updateContractStatus");
        contractService.updateContractStatus();
    }

    public void updateReservationStatus() {
        familyMemberService.updateReservationStatus();
    }
}
